package com.meilingcloud.biobank.test;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.meilingcloud.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 样本源 对象 bank_source
 *
 * @author chenl
 * @date 2021-02-26
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("V_T")
public class T implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 样本源ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sourceId;

    /**
     * 样本源编号
     */
    @Excel(name = "样本源编号")
    @NotBlank(message = "样本源编号不能为空")
    private String name;
}


